package com.lengmou.dao;

import com.lengmou.entity.Coupons;

import java.util.List;
import java.util.Map;

public interface CouponsDao {
//    查询所有优惠券
    public List<Coupons> querysAll();
//    根据id获取
    public Coupons queryById(String id);
//    额度查询
    public List<Coupons> querysByCut(double cut);
//    满查询
    public List<Coupons> querysByFull(double full);
//    根据订单id获取
    public Coupons queryByOrdersid(int id);
//    根据状态获取
    public List<Coupons> querysByState(int state);
//    批量添加
    public int addsCoupons(List<Coupons> coupons);
//    添加一条
    public int addCoupons(Coupons coupons);
//    修改
    public int updateCoupons(Coupons coupons);
//    删除
    public int deleteCoupons(String id);
//  搜索
    public List<Coupons> search(Map<String,Object> map);

}
